<%@ page import="com.opeace.PersonForm" %>



<div class="fieldcontain ${hasErrors(bean: personFormInstance, field: 'dateJoined', 'error')} required">
	<label for="dateJoined">
		<g:message code="personForm.dateJoined.label" default="Date Joined" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dateJoined" precision="day"  value="${personFormInstance?.dateJoined}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: personFormInstance, field: 'form', 'error')} required">
	<label for="form">
		<g:message code="personForm.form.label" default="Form" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="form" name="form.id" from="${com.opeace.Form.list()}" optionKey="id" required="" optionValue="name" value="${personFormInstance?.form?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: personFormInstance, field: 'information', 'error')} ">
	<label for="information">
		<g:message code="personForm.information.label" default="Information" />

	</label>
	<g:textArea style="vertical-align: top; width:86%" rows="20" name="information" value="${personFormInstance?.information.decodeHTML()}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: personFormInstance, field: 'person', 'error')} required">
	<label for="person">
		<g:message code="personForm.person.label" default="Person" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="person" name="person.id" from="${com.opeace.Person.list()}" optionKey="id" optionValue="${{it.firstName + ' '+ it.lastName}}" required="" value="${personFormInstance?.person?.id}" class="many-to-one"/>
</div>

